<?php

class homeActions extends sfActions {

     public function preExecute()
    {
         $this->getUser()->setAttribute('s_menu', null);
    }

    
    public function executeIndex(sfWebRequest $request){

        

            $criteria1=new Criteria();
            $criteria1->add(NovedadesPeer::CREATED_AT, date("Y-m-d"), Criteria::GREATER_EQUAL);
            $criteria1->addDescendingOrderByColumn(NovedadesPeer::ORDEN);
            $novedad=NovedadesPeer::doSelect($criteria1);

            $this->novedad=$novedad;

            $noticias=new Criteria();
            $noticias->add(NoticiasPeer::DATE, date("Y-m-d"), Criteria::GREATER_EQUAL);
            $noticias->addDescendingOrderByColumn(NoticiasPeer::ORDEN);
            $verNoticia=NoticiasPeer::doSelect($noticias);

            $this->noticias=$verNoticia;


        }

            public function executeContactanos(sfWebRequest $request){
            }

}

?>
